<template>
  <div>我是子窗口</div>
</template>

<script>
import { onMounted } from "vue";
const { ipcRenderer } = require("electron");
export default {
  setup() {
    onMounted(() => {
      ipcRenderer.on("toNews", function (event, aid) {
        console.log(aid);
      });
    });
    return {};
  },
};
</script>

<style></style>
